<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-nested" prefix="nested" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ page contentType="text/html; charset=utf-8"  import="com.leexuan.ordersystem.beans.*"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="css/admincp.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="script/common.js"></SCRIPT>

<SCRIPT src="script/iframe.js" type=text/javascript></SCRIPT>

<SCRIPT language=JavaScript>
function check(){
	
	if(document.getElementsByName("name")[0].value==""){
		alert("客户名称不能为空！");
		return false;
	}
	if(document.getElementsByName("address")[0].value==""){
		alert("客户地址不能为空！");
		return false;
	}
	if(document.getElementsByName("bank")[0].value==""){
		alert("开户银行不能为空！");
		return false;
	}
	if(document.getElementsByName("account")[0].value==""){
		alert("银行账号不能为空！");
		return false;
	}

	return true;
	
}
</SCRIPT>

<html:base/></HEAD>
<BODY topMargin=10>
<TABLE cellSpacing=6 cellPadding=2 width="100%" border=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE class=guide cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>客户管理>>&nbsp;增加客户</TD></TR></TBODY></TABLE><BR>
<html:form action="/addCustomer.do" method="post">
      <TABLE class=tableborder cellSpacing=0 cellPadding=0 width="100%" 
border=0>
        <TBODY>
        <TR class=header>
          <TD colSpan=2>增加客户</TD></TR>

        <TR>
          <TD class=altbg1>客户名称：</TD>
          <TD class=altbg2 align=right><html:text property="name" size="25"></html:text></TD></TR>
        <TR>
          <TD class=altbg1>客户地址：</TD>
          <TD class=altbg2 align=right><html:text property="address" size="25"></html:text></TD></TR>
        <TR>
          <TD class=altbg1>开户银行：</TD>
          <TD class=altbg2 align=right><html:text property="bank" size="25">></html:text></TD></TR>
        <TR>
          <TD class=altbg1>银行帐号：</TD>
          <TD class=altbg2 align=right><html:text property="account" size="25">></html:text></TD></TR>                    
      </TBODY></TABLE><BR>
      <CENTER><INPUT class=button type=submit value="提交"  onclick="return check();"></CENTER>	</html:form></TD></TR></TBODY></TABLE>

<%@include file= "./footer.jsp"%>
